<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">退货记录</h4>
</div>
<div class="wrapper" ng-controller="goodsRefundCtrl">
    <div class="panel panel-default padder-v padder-md">
        <div class="fa-border">
            <table class="table m-b-none table-striped table-responsive">
                <thead>
                    <tr>
                        <th>申请人信息</th>
                        <th>订单编号</th>
                        <th>退货商品信息</th>
                        <th>退货数量</th>
                        <th>退货原因</th>
                        <th>状态</th>
                        <th>操作时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <span>昵称：{{goodsRefund.nickName}}<br></span>
                            <span>联系方式：{{goodsRefund.mobilePhone}}</span>
                        </td>
                        <td>
                            {{goodsRefund.orderNumber}}
                        </td>
                        <td>
                            <span>商品名称：{{goodsRefund.goodsName}}<br></span>
                            <span ng-if="goodsRefund.skuContentName != null">规格属性：{{goodsRefund.skuContentName}}<br></span>
                            <span ng-if="goodsRefund.skuContentName == null">规格属性：未开启<br></span>
                            <span>购买数量：{{goodsRefund.number}}</span>
                        </td>
                        <td>{{goodsRefund.refundCount}}</td>
                        <td>{{goodsRefund.reason}}</td>
                        <td>
                            <span class="label bg-info" ng-if='goodsRefund.status==0'>申请退货</span>
                            <span class="label bg-warning" ng-if='goodsRefund.status==1'>退货中</span>
                            <span class="label bg-danger" ng-if='goodsRefund.status==2'>拒绝退货</span>
                            <i class="m-l-xs fa fa-question-circle text-muted pos-rlt h6" popover-placement="top"
                               popover="拒绝原因：{{goodsRefund.failReason}}" popover-trigger="mouseenter" ng-if="goodsRefund.status==2"></i>
                            <span class="label bg-success" ng-if='goodsRefund.status==3'>退货完成</span>
                        </td>
                        <td>
                            <span ng-if="goodsRefund.createdTime != null">申请时间：{{goodsRefund.createdTime}}<br></span>
                            <span ng-if="goodsRefund.shopDealTime != null">处理时间：{{goodsRefund.shopDealTime}}<br></span>
                            <span ng-if="goodsRefund.completeTime != null">完成时间：{{goodsRefund.completeTime}}</span>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div ng-if="goodsRefund.length<=0 && !app.loading" class="padder-v text-center">
                <span class="h6">~未搜索到任何数据~</span>
            </div>
            <div>
                <circle-loading ng-if="app.loading"></circle-loading>
            </div>
        </div>
    </div>
</div>